Customization of search results for search queries received from third party sites

ABSTRACT

A third party website provides a search interface to a general search engine. A site profile of the third party website describes various topics, keywords, or domains that are potentially relevant or of interest to users who access the third party website. The topics are associated with a topical directory, with domains associated with each topic; the domains in a given topic are given various weightings. When a search is submitted to the general search engine from the third party website via the search interface, the general search engine uses the site profile to customize the search results. The search results are customized by weighting the ranking of documents from websites associated with the topics in the site profile. The site profile can be manually or automatically constructed.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No. 12/479,622, filed on Jun. 5, 2009, which is a continuation of U.S. application Ser. No. 10/869,492, filed on Jun. 15, 2004. The contents of both applications are incorporated by reference herein in their entirety.

TECHNICAL FIELD

This invention relates in general to online search engines, and in particular to customization of search results.

BACKGROUND

The current state of the art in online search engines is highly advanced in its ability to retrieve documents (e.g., web pages or portions thereof, images, audio files, video, multimedia, etc.) that are responsive to the terms of a query. Search engines today can quickly retrieve specific documents that match the terms of the query.

Web site operators often contract with a search engine provider to obtain an interface to the search engine on the operator's website. This allows users who are on the operator's website to perform a search of the entire internet from a search box on website. Conventionally, these searches will return the same results as if they were done directly from the web site of the search engine provider, in that they do not reflect any influence on the results in view of the contents or theme of the website, or the interests of the website operator.

For example, on a website that focuses on providing information about major league baseball, a general search on “giants” will typically return search results oriented to giants. However, the site operator would prefer to customize the search results to reflect the interests of users of the site, who presumably are interested in baseball. Thus, it would be preferable to the site operator if the generalized search instead returned results oriented towards the San Francisco Giants baseball team.

Similarly, using current search approaches, site operators of two different website, one of which is oriented towards sports, and another of which is oriented towards politics, will provides users of their respective sites exactly the same results a given query to a general search engine, for example, the query o the “drug testing in baseball.” However, the first site operator would prefer that users obtain results about baseballs teams have implemented drug testing, while the latter site operator would prefer that users obtain results about legislation related to drug testing in sports. Thus, there is a need for providing a mechanism and methodology for customizing search results provided by a search engine in accordance with the interests of the site operators.

SUMMARY

The present invention provides allows a site operator specify a set of interests or topics which will influence the presentation of search results provided by general search engine in response to queries received the website of the operator. The present invention has multiple embodiments, including a system for providing a search engine, a methodology for processing a search query, and a site operator interface for the site operator to specify topics, and the degree of influence such topics have on search results.

For a site operator's perspective, the present invention provides a mechanism for customizing search results provided by a general search engine in response to queries received from the site operator's website. A general search engine is a search engine that performs a search on a generalized corpus such as the Internet and World Wide Web, and not limited to the contents of the site operator's website; a search essentially limited to the content of the site operator's site is called a site specific search. In one embodiment, the site operator provides a set of interests, for example as a set of topics or categories from a topical hierarchy or directory, which reflect the interests of the site operator or the expected users of the site operator's website. For example a site operator of a sports oriented website may choose topics such as “baseball,” “football,” “basketball”, etc. as topics of interest.

In one embodiment, these topics are stored in a site profile associated with the site operator's website; alternatively the site profile can be stored at the search engine website. In another embodiment, the interests are encoded as parameters (e.g., topic IDs) that are stored with the code for the search query interface on the site operator's website, and passed to the general search engine as query string parameters, along with the search query terms, when a search query is entered in the search query box by a user. This approach may be described as runtime passing of the site operator's site profile.

In another embodiment, the interests can be extracted by keyword analysis of one or more web pages on the site operator's website to identify topical keywords; by link analysis of one or more web pages on the site operator's website or that link to the website; by analysis of site-to-site browsing of users who access the website; by analysis of prior search queries done on the site operator's website. In general, any attribute of the site operator's website can be used to define the interests of the site operator. Optionally, the site operator can also specify the degree to which the site profile influences the search results from a search.

The site operator provides one or more web pages on its website that include a search query interface to the general search engine, such as a search query box. A user visiting the website can input a search query to the general search engine via this search query interface. Depending on the implementation, the general search engine either retrieves the site profile (which contains the interests of the site operator) or receives the site profile in the query string parameters. In either case, the general search engine retrieves documents that are relevant to the query terms and presents these as search results. The search results are ranked according to the site operator's interests, as expressed in the site profile. Thus, the results that more relevant to the interests of the site operator will have a higher placement in the overall presentation of the search results.

In one embodiment, the ranking of search results operates to increase the relevance score of documents that are associated with topic directory. Each topic in the directory is associated with a group of documents (e.g., websites) that are deemed relevant to the topic. For each document (again, website), a weight (equivalently, a “boost”) value is provided which indicates the degree of relevance of the site to the topic. All pages within a given site get that site's boost value. The boost value may be understood as a scaling factor that represents the relevance of the site to the topic. During query processing of a search query, the set of documents is returned, and each document is scored for its relevance to the query. If document is from one of the websites included in topics in the site operator's site profile, then the document's relevance score is adjusted by the weight, if any, of that website with respect to the topic. The adjustment may be, for example by multiplying the relevance score by the boost value, thereby scaling the relevance of the document to the query. Generally, only those documents which belong to sites listed in the directory will have a boosted relevance score, and other documents in the search results will not.

In one embodiment, as indicated above, the site operator can specify the degree of influence that the site profile has on the search results. This is done by using a customization control, which allows the site operator to specify a degree of influence from 0% to 100%. The input of the degree of influence can be textual (e.g., input of a number) or graphical. The ranking of the documents in accordance with their boosted relevance scores is then a function of the degree of influence, either from no influence (where the boost value has no effect on the relevance score) to complete influence, wherein boost value for a document is applied 100% to the document's relevance score, and any number of intermediate levels of application. The site operator can thus control the degree by which the site profile influences the ranking of documents in the search results by adjusting the position of the customization control.

A system embodiment includes a topic directory for providing topics (categories) to a site operator, a general search engine and index for searching indexed websites in response to a query received from a search query interface on the site operator's website, and in one embodiment, customization component for allowing the site operator to specify a degree of influence that the site profile will have determining the rankings of the search results to the search query. A site operator interface embodiment includes a topical directory, with various topics, and graphical controls (e.g., checkboxes) in which the site operator can select topics of interests, and, in one embodiment, a control that allows the site operator to adjust the search result ranking in accordance with his site profile.

The present invention is next described with respect to various figures and diagrams and technical information. The figures depict various embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the illustrated and described structures, methods, and functions may be employed without departing from the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a third party website of a site operator including search query interface to a general search engine.

FIG. 2 illustrates a topical directory.

FIG. 3 further illustrates the topical directory, including various subtopics.

FIG. 4 further illustrates various subtopics of the topical directory.

FIG. 5 illustrates a software architecture and associated dataflow for one embodiment.

DETAILED DESCRIPTION

Referring now to FIG. 1 there is shown a page 100 of site operator's website, including a search query interface to a general search engine. It is understood that the general search engine is operated at a different website provided by a search engine operator than the site operator's website. (A site operator's website will also be referred to herein as a “third party website,” as it is a third party with respect to the general search engine operator.) The page 100 includes a query entry field 102 in which a user who is visiting the third party website can enter the terms of a search query. A search button 106 submits the query to the general search engine for processing.

In one embodiment, the site operator defines a site profile via an interface provided by the general search engine operator. Referring to FIG. 2, there is shown a topical directory 202 that may be provided by general search engine operator to the third party site operator to define a site profile. The site operator uses the topical directory in order to identify the topics or interests to be used for customizing searches on the third party website. FIG. 2 shows the top level topics 204 of a topical directory 202. The topics in the directory can be, for example, the topics defined in the Open Directory Project, found at http://dmoz.org/ or can be some other topical directory. (The terms “topic” and “category” are interchangeable depending on the context, as are “subtopic” and “subcategory”.) The top level topic links may have a set of subtopics, as indicated by the arrows 206. Clicking on a particular top level topic takes the site operator to a page associated with that topic's subtopics.

FIG. 3 illustrates the result of this step, where the site operator has clicked on the topic “Computers” on page 200. As shown in FIG. 3, the subtopics 302 of the topic “Computers” have been displayed in the right hand column. Next to each subtopic 302 is a checkbox 314. The site operator can select the checkbox 314 to indicate his interest in a specific subtopic. Alternatively, the site operator can select the checkbox 316 for the entire subtopic itself, “Computers (General)”. This indicates that the site operator is interested in all of the subtopics of the topic “Computers”. The set of topics selected by the site operator is called a site profile or a customization profile. On the left side of FIG. 3, after the site operator has selected one or more topics of interest, these topics are listed in the topics field 306 for the site operator's review. Next to each topic is a delete link 308 that allows the site operator to delete individual topics. The site operator can also delete all topics by selecting the “Delete all topics” link 310.

The subtopics themselves can have any number of additional levels of subtopics. For example, FIG. 4 illustrates that the subtopic “Games” has further subtopics 402, “Board Games,” “Card Games,” etc. These were presented to the site operator in response to the site operator clicking on the subtopic arrow 206 next to the “Games” topic label. Again, the site operator can select either the entire subcategory by selecting checkbox 404, or any of the individual subtopic checkboxes 406. In one embodiment, in addition to the top level topics 204, there are two subtopic levels. This provides sufficient breadth and granularity of topical coverage, without imposing unnecessary computational complexity.

Referring again to FIG. 3, the site operator has indicated his interest in the “computers” topic generally. Clicking on the Generate Code button 208 causes the generation of a HTML code segment that the site operator can insert into one or more pages of the third party website. This code segment defines the search query interface 102, and contains parameters (here topic IDs) that describe the site profile defined by the site operator. An example of such a code segment is as follows:

<!-- Customized Search Query Interface-->

<FORM method=GET action=http://labs.google.com/personalized/search>

<A HREF=http://labs.google.com/personalized>

<INPUT TYPE=text name=q size=40 maxlength=255 value=″>

<INPUT TYPE=hidden name=site_profile value=127,126,61,45,5>

<INPUT type=submit name=sa VALUE=′Customized Search′>

</FORM>

<!-- Customized Search Query Interface-->

Of interest here is line 5, which includes the variable site_profile as a set of integer topic IDs {127,126,61,45,5}, which are passed to the general search engine when the query is submitted. The general search engine maps the topic IDs to specific topics in the topical directory, to determine an associated boost value for documents that come from websites associated with the topic. In this example code segment, there are five topic IDs, but any number of IDs may be encoded here, depending on the number of topics that the site operator selects from the topical directory. The site operator adds the appropriate code segment to the desired webpages of the third party website, and publishes those pages for users to access.

In an alternative embodiment, the site operator's site profile is stored locally to the general search engine, for example in a site profile database. In this embodiment, the query interface simply returns a site_ID value instead of the list of topic IDs in site_profile. The general search engine then maps the site_ID value to the site operator's site profile in the database.

In one embodiment, the site operator can (optionally) specify a degree of influence by which the search results will be customized by the general search engine using the site profile. The input may be textual, such as value from 0 to 10 (which is then scaled an appropriate weighting scale) or graphical (e.g., using a slider type graphical control along an graphical axis; the position of the slider relative to the start and end points of the axis is then scaled to a weight). The customization control 309 allows the site operator to adjust the ranking of the individual documents/pages of the search results with respect to his interests, preferably as expressed in the customization profile. The customization control may be explained as controlling a degree of influence or contribution of the site operator's site profile to the ranking of the search results, and more specifically, scaling the boost that is applied to documents from websites associated with topics in the site profile.

FIG. 3 illustrates an example of a graphical customization control in an embodiment where it is a slider type control that includes a control handle 313 that is moved along a linear dimension between a minimum 312 to a maximum value 314. This type of control 309 is generally very intuitive and easy for site operators to understand how it operates. Alternative embodiments include dial type controls, similarly providing a variable adjustment between a minimum and maximum value, and radio buttons each with an associated predetermined adjustment amount (e.g., five radio buttons, associated respectively with 0%, 20%, 40%, 80%, and 100%). Those of skill in the art of site operator interface design will appreciate that other types of controls may be implemented to achieve essentially the same effect.

Another embodiment does not require the site operator to specify topical interests directly. Rather, the topics are automatically (e.g., programmatically) derived from attributes of one or more pages of the third party website or interactions by users of the site. The selected pages can be just the page(s) on which the search query interface appears, or all pages of the website, or some other set of pages. Various different types of attributes can be used to construct the site profile.

First, textual attributes, such as keywords, may be automatically associated with one or more pages of the site operator′ website, based on frequency of appearance in the document and the general corpus, appearance (e.g., words in headings, boldface, etc., indicating relevant topics), or based on other statistical, morphological, syntactic, or grammatical features. The keywords are then mapped to previously identified topics in the topical directory, and the matching topics are included in the site profile. The mapping is easily done, for example, by providing a list of matching terms for each topic. An alternative approach is simply to scan the selected website pages for any of the topic terms themselves, and use the N (e.g., 10) most frequently appearing topic terms as the topics for the site profile. The automatic derivation of keywords for describing documents (e.g. websites and webpages) is well known to those of skill in the art, and thus not further explained here. Any known or later developed algorithm that generates one or more keywords (or topics) from a given input of pages may be used, and the particular technique employed for this purpose is not a material aspect of the invention.

Second, structural attributes of the selected pages may analyzed, in particular the outbound and/or inbound link structure. The inbound links to, and the outbound link from of a page, including the anchor text and the outbound URL of each link, are useful indicators of what a given page is about. Accordingly, the anchor text terms of inbound and/or outbound links may be used to derive topical keywords, and the domains of the linked pages may also be used by weighting any search results pages from these linked domains to improve their ranking in the final search results.

In another embodiment, the site profile of a site operator includes a list of the most relevant domains related to the site operator's website. For example, the site operator may provide a list of M (e.g., 5) domains that it deems of most relevant to user of the third party website. Documents from these websites will have their relevance scores weighted by the boost values associated with these websites, and thereby improve the ranking of any document in the search results which is from one of these sites.

Third, interaction attributes of users of the third party website may also be used for determining a site profile. Interaction attributes includes searches conducted by users and browsing patterns. For prior searches, the site operator or the general search engine can keep track of some number of prior searches by users at the third party website. The search query terms themselves can be analyzed, and some subset of them (e.g., the most frequently occurring query terms), can be used as the topic terms themselves, mapped onto the topic terms, or scanned for topic terms, as described above, to obtain the site profile topic IDs.

Interaction attributes also include the browsing patterns of site users. A user's site browsing patterns can be captured in a client side browser tool, such as a search query interface that is resident in the browser toolbar. For example, the browser tool can maintain a list of domains that a user accesses, including the order in which domains are accessed. In one embodiment, the domain information can be stored in domain tuples, as pairs of domains {origin_domain, destination_domain}, where the origin_domain is the site from which the user then links or access the destination_domain. From this domain access information, the relevant domains for any selected domain can be readily determined. First the domain access information from a plurality (e.g., hundreds or thousands, or more) users is obtained. For a given site operator's domain, all other domains that were either origin_domains or destination_domains can be determined. The most frequently occurring origin or destination domains are then considered the relevant domains for the site profile. In another embodiment, the general search engine site maintains for each of the third party sites that use its services, a list of the domains that are accessed by those users who also access the third party site, as well as the frequency of those visits to such domains.

In one embodiment, the customization of search results is provided by the following methodology and system. Those of skill in the art of search engine design can readily understanding the basic structure of a general search engine and its operation in which this methodology can be implemented. Referring now to FIG. 5, there is shown one embodiment of a software architecture and associated dataflow for practicing the present invention.

The user operates a client application 118, including a browser. The user accesses the site operator′ website 119, enters a search query in the search query interface 102, as illustrated above. The search query (Q), along with the site profile parameters (e.g., site_profile topic IDs or site profile ID, depending on the implementation) is provided to the general search engine 104 via a front end server 102.

The front end server 102 issues a search request the general search engine 104 on the query Q and site profile. The front end server will receive back from the search engine 104 the customized search results, R_profile. The search engine 104 can apply any type of information retrieval scoring and relevance ranking process to determine an information retrieval score for each of a number of documents. The IR score can be determined, for example, using the PageRank algorithm, as disclosed in U.S. Pat. No. 6,285,999, “Method for node ranking in a linked database”, which is incorporated by reference herein in its entirety and for all of its teachings.

The customized query (Q, site profile) contains the site operator's topic IDs (or site ID again, depending on the embodiment). The general search engine 104 follows a similar processing control flow as any normal query that is otherwise receives, but it accesses a customization server 108 during the scoring function by providing the site profile (or site ID) to the customization server 108.

The customization server 108 “boosts” documents that are relevant to the site profile for the site operator. If the customization server 108 receives the site profile directly, then it can determine the appropriate topic boosts for each topic identified in the site profile. If the customization server 108 receives a site ID of the third party website 119, then it can lookup the site profile in the site profile database 110. A site profiling tool 107 can be used to either generate the code segment as described above, or to generate the site profile directly using any of the various automated site analysis methods described above.

In one embodiment of the invention, the topic boosts are implemented using a set of maps (one map for each topic/subtopic in the directory), of the form:

-   -   {Site-->boost}

So for example, the category “Health” has a topic map of the form

-   -   {Site-->boost}

which contains entries such as:

-   -   nih.gov-->5.8     -   cdc.gov-->7.9     -   med.stanford.edu-->3.5

where nih.gov, cdc.gov, and med.Stanford.edu are various sites (domains) that have been determined (either manually or automatically) to be related to the topic “Health.” In other words, for each topic in the directory, there is a set of sites that have been determined to be relevant to the topic, and for each of these sites, a boost value is defined.

The boost for the sites listed in the topical directory is generally determined as follows:

a) A “site graph” is generated where nodes of the graph are sites (basically, pages on the same host) and edges between nodes are weighted based on the number of pages from one site that link to pages on another. This same type of graph can be used to compute all topic boost maps.

b) For each topic in the directory, say “Health”, a number of sites are selected as “start sites” S0 whose home page is listed in the Open Directory. For example, for a university like Stanford, start sites may be selected as any site ending in .stanford.edu.

c) A computation is run in two passes:

i) first identify a set of sites S1 that are linked-to heavily by those sites in S0, with each site in S1 assigned a weight according to how heavily it's linked-to by sites in S0.

ii) then identify those sites S2 that are linked-to heavily by those sites in S1, weighted as with S1.

d) The sites in S2 are boosted with their assigned weights.

When a customized query comes in with a site profile (e.g., {Health, Music}), then the customization server 108 consults the respective maps for these topics. When a document in the query results is from a domain included a topic map, the customization server 108 boosts the IR score for the document by the boost value associated with topic, so that the document gets its IR score improved.

In the embodiment described above where the site operator directly specifies a number of most relevant sites, again the customization server 108 can obtain the corresponding boost value for each of these sites from the topic maps.

For example if http://www.med.stanford.edu/research/ were one of the results for query Q, and site profile included “Health,” then that result would get a multiplicative boost of 3.5 to its IR score, because that page is on the site med.stanford.edu, which as illustrated above has a boost value of 3.5. For multiple interests, the values in the corresponding maps are multiplied together for a combined effect. Further details of one implementation for determining the boost for sites in the directory boost map is described in the related application, “Improved Methods for Ranking Nodes in Large Directed Graphs,” which is incorporated by reference.

The front end server 102 receives the customized search results R_profile, and passes them back the client application 118 for display to the user.

In an embodiment in which the site operator is provided with, and uses the customization control 309, the following additional steps are undertaken.

First, the front end server 102 makes two search requests to the search engine 104, the customized query R_profile, as above, and another request, a base query, just on the query Q with the site profile being set to NULL. The base query (Q, NULL) is the same as searching for Q on the search engine 104 without any profile information, so R_base is the result set that the general search engine 104 would normally return in response to the query. This search corresponds to the degree of influence being 0%, e.g., the customization slider 309 set at its minimum position 312. R_profile represents the degree of influence of the site profile being maximal (i.e., 100%), for example, where the slider is at its maximum position 314. In one embodiment, the control 309 has 11 positions (positions 0 through 10), but any number of positions may be used, and the rankings for intermediate positions between 0 and 10 are linearly interpolated; this means using R_base and R_profile, the customization server 108 can determine the appropriate ranking of the documents.

The customization server 108 appends the results in R_profile that are not in R_base to R_base to get a list of all unique results (either in R_base or R_profile) called R_all. The customization server 108 then assigns consecutive identification numbers to the results in R_all that serve as identifiers (R_IDs). For each of these result documents then, the customization server 108 boosts (e.g., multiplies) each document's IR score by the boost value from the topic directory (if any) of its domain, and the interpolated weighting factor for the site operator's specified degree of influence (e.g. 0.5, when the customization control 309 is set halfway between the maximum and minimum values).

The present invention has been described in particular detail with respect to one possible embodiment. Those of skill in the art will appreciate that the invention may be practiced in other embodiments. First, the particular naming of the components, capitalization of terms, the attributes, data structures, or any other programming or structural aspect is not mandatory or significant, and the mechanisms that implement the invention or its features may have different names, formats, or protocols. Further, the system may be implemented via a combination of hardware and software, as described, or entirely in hardware elements. Also, the particular division of functionality between the various system components described herein is merely exemplary, and not mandatory; functions performed by a single system component may instead be performed by multiple components, and functions performed by multiple components may instead be performed by a single component.

Some portions of above description present the features of the present invention in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. These operations, while described functionally or logically, are understood to be implemented by computer programs. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules or by functional names, without loss of generality.

Unless specifically stated otherwise as apparent from the above discussion, it is appreciated that throughout the description, discussions utilizing terms such as “calculating” or “determining” or “identifying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system memories or registers or other such information storage, transmission or display devices.

Certain aspects of the present invention include process steps and instructions described herein in the form of an algorithm. It should be noted that the process steps and instructions of the present invention could be embodied in software, firmware or hardware, and when embodied in software, could be downloaded to reside on and be operated from different platforms used by real time network operating systems.

The present invention also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored on a computer readable medium that can be accessed by the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus. Those of skill in the art of integrated circuit design and video codecs appreciate that the invention can be readily fabricated in various types of integrated circuits based on the above functional and structural descriptions, including application specific integrated circuits (ASIC). In addition, the present invention may be incorporated into various types of video coding devices.

The algorithms and operations presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may also be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will be apparent to those of skill in the art, along with equivalent variations. In addition, the present invention is not described with reference to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any references to specific languages are provided for disclosure of enablement and best mode of the present invention.

Finally, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, the disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention. 

What is claimed is:
 1. A computer-implemented method comprising: obtaining topic data for a user interface, the topic data indicating a topic of content of the user interface, wherein the user interface includes a search query interface, and the content is separate from search results provided in response to queries received through the search query interface; receiving a query submitted by a user through search query interface of the user interface; receiving data identifying (i) documents that are responsive to the query and (ii) an information retrieval score for each of the documents; determining that one or more of the documents are associated with the topic that is indicated by the topic data for the user interface that includes the search query interface through which the user submitted the query; and adjusting a respective information retrieval score for the one or more of the documents that are determined to be associated with the topic.
 2. The computer-implemented method of claim 1, further comprising: after adjusting the information retrieval scores, ranking the documents according to the respective information retrieval scores; and providing, in response to the query, search results data identifying at least a portion of the documents that are responsive to the query and also identifying a rank order of the documents in the portion.
 3. The computer-implemented method of claim 1, further comprising storing the topic data indicating that the user interface is associated with the topic; wherein obtaining the topic data comprises accessing the stored topic data.
 4. The computer-implemented method of claim 1, wherein obtaining the topic data indicating that the user interface is associated with the topic comprises: receiving, with the query, one or more topic identifiers; and determining topics corresponding to the topic identifiers.
 5. The computer-implemented method of claim 1, wherein the user interface comprises a web page; wherein obtaining the topic data indicating that the user interface is associated with the topic comprises obtaining topic data indicating that the web page is associated with the topic; and wherein receiving the query submitted by the user through the search query interface of the user interface comprises receiving the query submitted by the user through the search query interface of the web page.
 6. The computer-implemented method of claim 5, further comprising: analyzing content of the web page through which the user submitted the query; and determining a topic based on analyzing the content of the web page; wherein storing the data indicating that the web page is associated with the topic comprises storing data indicating that the web page is associated with the topic determined based on analyzing the content of the web page.
 7. The computer-implemented method of claim 5, further comprising determining the topic associated with the web page based on browsing patterns of users navigating to or from the web page.
 8. The computer-implemented method of claim 7, wherein determining the topic associated with the web page comprises: identifying origin domains accessed before accessing the web page; identifying destination domains accessed after accessing the web page; and determining the topic based at least in part on the origin domains and the destination domains.
 9. The computer-implemented method of claim 5, further comprising determining the topic associated with the web page by: identifying keywords in the web page; and mapping the keywords to one or more predetermined topics in a topical directory.
 10. The computer-implemented method of claim 5, further comprising: identifying inbound links to or outbound links from the web page; and determining the topic associated with the web page based on the inbound links or the outbound links.
 11. The computer-implemented method of claim 1, wherein determining that the one or more of the documents are associated with the topic comprises determining that a domain name for the one or more of the documents is included in a predetermined set of domain names associated with the topic.
 12. The computer-implemented method of claim 1, further comprising determining the topic associated with the user interface comprises analyzing prior search queries received through the search query interface.
 13. A system comprising: one or more computers; and a computer-readable medium coupled to the one or more computers having instructions stored thereon which, when executed by the one or more computers, cause the one or more computers to perform operations comprising: obtaining topic data for a user interface, the topic data indicating a topic of content of the user interface, wherein the user interface includes a search query interface, and the content is separate from search results provided in response to queries received through the search query interface; receiving a query submitted by a user through a search query interface of the user interface; receiving data identifying (i) documents that are responsive to the query and (ii) an information retrieval score for each of the documents; determining that one or more of the documents are associated with the topic that is indicated by the topic data for the user interface that includes the search query interface through which the user submitted the query; and adjusting a respective information retrieval score for the one or more of the documents that are determined to be associated with the topic.
 14. The system of claim 13, wherein the operations further comprise: after adjusting the information retrieval scores, ranking the documents according to the respective information retrieval scores; and providing, in response to the query, search results data identifying at least a portion of the documents that are responsive to the query and also identifying a rank order of the documents in the portion.
 15. The system of claim 13, wherein the operations further comprise storing the topic data indicating that the user interface is associated with the topic; wherein obtaining the topic data comprises accessing the stored topic data.
 16. The system of claim 13, wherein obtaining the topic data indicating that the user interface is associated with the topic comprises: receiving, with the query, one or more topic identifiers; and determining topics corresponding to the topic identifiers.
 17. The system of claim 13, wherein the user interface comprises a web page; wherein obtaining the topic data indicating that the user interface is associated with the topic comprises obtaining topic data indicating that the web page is associated with the topic; and wherein receiving the query submitted by the user through the search query interface of the user interface comprises receiving the query submitted by the user through the search query interface of the web page.
 18. A non-transitory computer-readable medium encoded with a computer program comprising instructions that, when executed, operate to cause a computer to perform operations comprising: obtaining topic data for a user interface, the topic data indicating a topic of content of the user interface, wherein the user interface includes a search query interface, and the content is separate from search results provided in response to queries received through the search query interface; receiving a query submitted by a user through a search query interface of the user interface; receiving data identifying (i) documents that are responsive to the query and (ii) an information retrieval score for each of the documents; determining that one or more of the documents are associated with the topic that is indicated by the topic data for the user interface that includes the search query interface through which the user submitted the query; and adjusting a respective information retrieval score for the one or more of the documents that are determined to be associated with the topic.
 19. The non-transitory computer-readable medium of claim 18, wherein the operations further comprise: after adjusting the information retrieval scores, ranking the documents according to the respective information retrieval scores; and providing, in response to the query, search results data identifying at least a portion of the documents that are responsive to the query and also identifying a rank order of the documents in the portion.
 20. The non-transitory computer-readable medium of claim 18, wherein the user interface comprises a web page; wherein obtaining the topic data indicating that the user interface is associated with the topic comprises obtaining topic data indicating that the web page is associated with the topic; and wherein receiving the query submitted by the user through the search query interface of the user interface comprises receiving the query submitted by the user through the search query interface of the web page. 